package org.wei.bean.manager;

public class Main {

	public static void main(String[] args) throws Exception {
		TestEntity t = (TestEntity) BeanManager.getInstance().getBean(
				"testBean");
		TestEntity t2 = (TestEntity) BeanManager.getInstance().getBean(
				"testBean2");
		Testable t3 = (Testable) new MyProxy().bind(t);
		System.out.println("....." + t3.getDescription());
		System.out.println(t);
		System.out.println(t.getId());
		System.out.println(t.isGood());
		System.out.println(t.getRef());
		System.out.println(t.getDescription());
		System.out.println(t2);
		System.out.println(t2.getId());
		System.out.println(t2.isGood());

		TestEntityFactory factory = (TestEntityFactory) BeanManager
				.getInstance().getBean("testEntityFactory");
		System.out.println(factory.getI()+"......");
	}

}
